import Mock from "mockjs"
const user_list = Mock.mock({
  "user_list|100": [{

    key: "@id",
    id: "@id",
    profile: "@image(100X100,@color,@city)",
    email: "@email",
    updateTime: new Date().getTime(),
    "age|1": [18, 19, 20, 21, 22, 23],
    name: "@cname",
    "sex|1": ["男", "女"],
    "role|1": ["客服", "运维", "市场", "开发"],
    introduction: "@ctitle(10,20)"

  }]
});

const product_list = Mock.mock({
  "product_list|100": [{
    id: "@id",
    title: "@title(10,20)",
    pic: "@image(100X100,@color,@city)"
  }]
})
Mock.mock('/api/user/list', 'get', user_list);
Mock.mock('/api/product/list', 'get', product_list);